package com.qianbei.view.orm;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by bliu on 2018/2/11.
 */
@Entity
public class RFID {
    @Id
    private Long id;
    /**
     * RFID 字符串
     */
    private String rfid;

    /**
     * 派车单ID
     */
    @NotNull
    private String jobId;
    /**
     * 周转箱编号
     */
    private String boxNum;
    /**
     * 周转箱类型 文字
     */
    private String boxType;

    private int boxTypeIntVal;

    /**
     * 是否为空箱
     */
    private boolean empty;

    /**
     * 在哪个步骤用的数据 可自定义字符串 注意不要重复
     */
    private String whichStep;

    /**
     * 客户ID
     */
    private String customerId;

    


    public RFID() {
    }

    @Generated(hash = 1243650606)
    public RFID(Long id, String rfid, @NotNull String jobId, String boxNum,
            String boxType, int boxTypeIntVal, boolean empty, String whichStep,
            String customerId) {
        this.id = id;
        this.rfid = rfid;
        this.jobId = jobId;
        this.boxNum = boxNum;
        this.boxType = boxType;
        this.boxTypeIntVal = boxTypeIntVal;
        this.empty = empty;
        this.whichStep = whichStep;
        this.customerId = customerId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        RFID rfid1 = (RFID) o;

        return rfid.equals(rfid1.rfid);
    }

    @Override
    public int hashCode() {
        return rfid.hashCode();
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getRfid() {
        return this.rfid;
    }

    public void setRfid(String rfid) {
        this.rfid = rfid;
    }

    public String getBoxNum() {
        return this.boxNum;
    }

    public void setBoxNum(String boxNum) {
        this.boxNum = boxNum;
    }

    public String getBoxType() {
        return this.boxType;
    }

    public void setBoxType(String boxType) {
        this.boxType = boxType;
    }

    public String getJobId() {
        return this.jobId;
    }

    public void setJobId(String jobId) {
        this.jobId = jobId;
    }



    public String getCustomerId() {
        return this.customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getWhichStep() {
        return this.whichStep;
    }

    public void setWhichStep(String whichStep) {
        this.whichStep = whichStep;
    }

    public int getBoxTypeIntVal() {
        return this.boxTypeIntVal;
    }

    public void setBoxTypeIntVal(int boxTypeIntVal) {
        this.boxTypeIntVal = boxTypeIntVal;
    }

    public boolean getEmpty() {
        return this.empty;
    }

    public void setEmpty(boolean empty) {
        this.empty = empty;
    }
}
